﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Properties;
using IngressApp.DAC;

namespace IngressApp.BC
{
    public class BCUpdate
    {
        public string update(Empleado obj, int idEmpleado)
        {
            DACUpdate up = new DACUpdate();
            if (up.updateRecord(obj, idEmpleado) == true)
                return "Succes";
            else
                return "Failed";
        }
        public string update(EmpleadoHuella obj, int idEmpleado)
        {
            DACUpdate up = new DACUpdate();
            if (up.updateRecord(obj, idEmpleado) == true)
                return "Succes";
            else
                return "Failed";
        }
        public string update(Registro obj, int idRegistro)
        {
            DACUpdate up = new DACUpdate();
            if (up.updateRecord(obj, idRegistro) == true)
                return "Succes";
            else
                return "Failed";
        }
        public string update(TipoHuella obj, int idTipoHuella)
        {
            DACUpdate up = new DACUpdate();
            if (up.updateRecord(obj, idTipoHuella) == true)
                return "Succes";
            else
                return "Failed";
        }
    }
}
